home *** CD-ROM | disk | FTP | other *** search
/ A.C.E. 1 / ACE CD 1.iso / files / games / 1-l / foglora1.dms / in.adf / s / startup-sequence < prev   
Encoding:
Text File  |  1995-03-25  |  2.4 KB  |  116 lines

  1. FOGA.EXE
  2. SetPatch quiet
  3. echo c
  4. echo "Fields of Glory"
  5. FAILAT 21
  6. Assign ENV: FOG1:ENV
  7.  
  8. IF EXISTS ENV:BK
  9.  
  10.   LAB Main2
  11.   RequestChoice >ENV:Opt "Fields of Glory" "Fields of Glory*n*n    (c) 1994*n   Microprose" "Play Game|Install to HD|Workbench"
  12.  
  13.   if $Opt EQ 1
  14.     FOG1:fog
  15.   endif
  16.  
  17.   if $Opt EQ 2
  18.     SKIP Install
  19.   endif
  20.  
  21. ELSE
  22.  
  23.   LAB Main1
  24.   RequestChoice >ENV:Opt "Fields of Glory" "Fields of Glory*n*n    (c) 1994*n   Microprose" "Play Game|Backup|Install to HD|Workbench"
  25.  
  26.   if $Opt EQ 0
  27.     LoadWB
  28.     EndCLI
  29.   endif
  30.  
  31.   if $Opt EQ 1
  32.     FOG1:fog
  33.     LoadWB
  34.     EndCLI
  35.   endif
  36.  
  37.   if $Opt EQ 2
  38.     echo "BACKING UP DISKS"
  39.     echo " "
  40.     LAB GetBlank1
  41.     cd RAM:
  42.     copy c:#? ram: QUIET
  43.     assign c: ram:
  44.     Assign s: ram:
  45.     Assign ENV: ram:
  46.     Resident DiskCopy pure
  47.     RequestChoice >ENV:bk1 "Fields of Glory" "You will need two blank*ndisks for this operation" "OK|CANCEL"
  48.     IF $bk1 EQ 0
  49.       SKIP Main1 BACK
  50.     endif
  51.     echo "Source disk is FOG1:"
  52.     echo " "
  53.     DiskCopy FROM df0: TO df0:
  54.     echo >df0:ENV/BK "Fields of Glory backup disk"
  55.     IF ERROR
  56.       SKIP GetBlank1 BACK
  57.     endif
  58.     LAB GetBlank2
  59.     echo " "
  60.     echo " "
  61.     echo "Source disk is FOG2:"
  62.     echo " "
  63.     DiskCopy FROM df0: to df0:
  64.     IF ERROR
  65.       SKIP GetBlank2 BACK
  66.     endif
  67.     echo >FOG1:ENV/BK "Backup made"
  68.     Assign c: FOG1:c
  69.     Assign ENV: FOG1:ENV
  70.     Assign s: FOG1:s
  71.     SKIP Main2 BACK
  72.   endif
  73.  
  74.   if $Opt EQ 3
  75.     LAB Install
  76.     RequestFile >ENV:Drawer TITLE "Select directory" DRAWERSONLY
  77.     IF WARN
  78.       SKIP END
  79.     ENDIF
  80.     resident FOG1:c/makedir pure
  81.     resident FOG1:c/copy pure
  82.     echo "INSTALLING TO HARD DISK"
  83.     cd $Drawer
  84.     IF ERROR
  85.       SKIP Install BACK
  86.     ENDIF
  87.     copy FOG1:HD_Info/FOG.Info FOG.Info
  88.     makedir FOG
  89.     copy FOG1:#? FOG all
  90.     copy FOG2:#? FOG all
  91.       echo " "
  92.       echo "In order to run the game from the hard disk,  you must add the"
  93.       echo "following lines to your startup-sequence."
  94.       echo " "
  95.       echo "Assign FOG1: $Drawer /FOG"
  96.       echo "Assign FOG2: $Drawer /FOG"
  97.       echo " "
  98.       ask "Press Enter to load workbench"
  99.     ELSE
  100.       copy $Startup s:hd_startup-sequence
  101.       echo " "
  102.       echo "Old hard disk startup-sequence copied to s:hd_startup-sequence"
  103.       echo " "
  104.       join FOG1:s/hd_start s:hd_startup-sequence AS $Startup
  105.       wait 5
  106.     ENDIF
  107.     loadwb
  108.     endcli
  109.   endif
  110.  
  111. ENDIF
  112.  
  113. LAB END:
  114.   LoadWB
  115.   EndCLI
  116.